package com.kqb.auth.feign;

import com.kqb.api.auth.feign.TokenFeignClient;
import com.kqb.auth.utils.JwtUtils;
import com.kqb.common.core.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杉果树皮
 * @date 2025/4/14 14:04
 * @description:
 */
@RestController
public class TokenFeignController implements TokenFeignClient {
    @Autowired
    JwtUtils jwtUtils;

    @Override
    public AjaxResult checkToken(String accessToken) {
        return jwtUtils.validateToken(accessToken);
    }
}
